<template>
  <div>
    <img :src="item.img|formatImg" alt="">
    <span>{{item.nm}}</span>
  </div>
</template>
<script>
export default {
  props:['item'],
  filters:{
    formatImg(url){
      return url.replace(/w.h/,'80.115')
    }
  }
  
}
</script>


<style lang="scss" scoped>
div{
  display: flex;
  flex-direction: column;
   margin-left: 10px;
  img {
    width: 85px;
    height: 115px;
  }
  span{
    width: 85px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
  }
 
}
</style>

